package com.example.g51.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.g51.entity.CartRate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CartRateMapper extends BaseMapper<CartRate> {

    @Select("SELECT cate_rate FROM cart_rate_table WHERE user_id = #{userId}")
    Double selectCateRateByUserId(String userId);
}